package com.mlz.pojo;

//阿里云OSS 相关配置

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

//生成getter / setter的方法完成注入
@Data
//封装yml对象格式必须先声明当前实体类受spring管理
@Component
//将本类中所有的属性和配置文件中相关的配置进行绑定
@ConfigurationProperties(prefix = "aliyun.oss")
public class AilOSSProperties {

    private String endpoint;
    private String accessKeyId;
    private String accessKeySecret;
    private String bucketName;
}
